package com.neo.office.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neo.office.server.domain.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 更新用户角色
     * @param userId
     * @param rids
     * @return
     */
    Integer addUserRole(@Param("userId") Integer userId, @Param("rids") Integer[] rids);

}